package com.zhny.sprinkler.irrigation.machine.rtu.plugin.model;


import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class SprinklerRTUModbusCommandParam   {
    private int address;
    private int regAdress;
    private int dataSize;
    private short oper;
    public static SprinklerRTUModbusCommandParam valueOf(int address,short oper, int regAdress, int dataSize){
        SprinklerRTUModbusCommandParam entry = new SprinklerRTUModbusCommandParam();
        entry.setAddress (address);
        entry.setOper(oper);
        entry.setRegAdress(regAdress);
        entry.setDataSize(dataSize);
        return entry;
    }
}
